package service.user;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.common.BaseMapper;
import com.common.BaseService;

import beans.user.xh;
import mapper.user.orderMapper;
import mapper.user.xhMapper;

@Service
@Transactional
public class XHServiceImpl<T> extends BaseService<T>{

	@Autowired
	private xhMapper<T> _xhMapper;

	@Override
	public BaseMapper<T> getMapper() {
		return _xhMapper;
	}

	/**
	 * 获取会员序号信息
	 * @param openid
	 * @return
	 */
	public xh getByUserid(String openid) {
		return _xhMapper.getByUserid(openid);
	}

	public void updateTotalCount(T temXh) {
		_xhMapper.updateTotalCount(temXh);
	}

	public void updateTotalCount2(T temXh) {
		_xhMapper.updateTotalCount2(temXh);
	}
}